<?php

/**
 * Simulex - Simulados inteligentes
 * Copyright (C) 2010-2011  Eng Weber Rener Paiva
 */
class Tri_View_Helper_Rotulo extends Zend_View_Helper_Abstract
{
    public function rotulo($text, $dockable = null)
    {
        $xhtml  = '<div class="rotulo">';
        $xhtml .= '<span class="rotulo_left"></span>';
        $xhtml .= '<span class="rotulo_container">' . $this->view->translate($text) . '</span>';
        $xhtml .= '<span class="rotulo_right"></span>';
        if($dockable){
            $xhtml .= '<span class="rotulo_options"></span>';
        } else {
            $xhtml .= '<span class="rotulo_ball"></span>';
        }
        $xhtml .= '</div>';
        return $xhtml;
    }
}